package chap_4_Math_Char_Strings;

import java.util.Scanner;

public class Listing_4_2_OrderTwoCities {
	public static void main(String[] args){
		String city_1, city_2;
		System.out.println("Please input 2 cities: ");
		Scanner scanner = new Scanner(System.in);
		city_1 = scanner.nextLine();
		city_2 = scanner.nextLine();
		if(city_1.compareTo(city_2) < 0) {
			System.out.println("The order of the cities are: " + city_1 + ", " + city_2);
		} else {
			System.out.println("The order of the cities are: " + city_2 + ", " + city_1);
		}
		scanner.close();
	}
}
